use crate::handlers::auth_handler as AuthHandler;
use actix_web::{web, Scope};

pub struct AuthRoutes;

impl AuthRoutes {
    pub fn init() -> Scope {
        web::scope("/auth")
            .route("/login", web::post().to(AuthHandler::login))
            .route("/logout", web::post().to(AuthHandler::logout))
            .route("/disable", web::post().to(AuthHandler::disable))
            .route("/enable", web::post().to(AuthHandler::enable))
    }
}
